package com.itheima.zuoye2.zuoye1;

import lombok.Data;

import java.time.LocalDate;

public class DateDemo {
    public static void main(String[] args) {
        String date = "2020-05-01";
        LocalDate localDate = DateUtils.stringToDate(date);
        System.out.println(localDate);
        LocalDate data1=DateUtils.stringToDate("2020-05-01");
        System.out.println(DateUtils.dateToString(data1));

    }
}
